<?php

require FCPATH . 'application/controllers/frontend.php';

class Photo extends Frontend {

    public function __construct() {
        parent::__construct();

        $this->load->model('photo_model', 'model');
    }

    public function records() {
        $album = intval($this->uri->segment(3));
        $this->json_back('XT001', '', array(
            'records' => $this->model->records(0, 0, array(array('album', $album)))
        ));
    }
}